Ques:Which of the following statements should be used to obtain a remainder after dividing 3.14 by 2.1
Ans.rem = modf(3.14, 2.1).
No difference, except extern int fun(); is probably in another file.
" ceil(1.66)" .
long int l = 2.35 .
Declaration
1 and 3.
extern int a is declaration, int a = 20 is the definition
Declaring.
A function prototype in C or C++ is a declaration of a function that omits the function body but does specify the function's name, argument types and return type. While a function definition specifies what a function does, a function prototype can be thought of as specifying its interface.
.
.
I also find it frustrating when I see unfairness or injustice, whether it's in the workplace or in the broader world. I believe strongly in fairness, equity, and treating others with respect and dignity. When I encounter situations where these principles are not upheld, it can evoke a sense of frustration or disappointment.
That being said, I've learned to channel these emotions constructively by focusing on finding solutions and advocating for positive change. Whether it's through facilitating discussions, providing feedback, or actively working to address underlying issues, I strive to approach challenging situations with a solutions-oriented mindset.
Overall, I believe that acknowledging and understanding our emotions is an important part of being human, but it's equally important to channel them in a constructive and productive manner, especially in a professional setting."
"One example of my creativity occurred when I was tasked with [mention a specific project or challenge]. We were facing [describe the problem or objective], and it required a fresh approach to achieve our goals.
Instead of following the traditional methods, I decided to [explain your creative approach or idea]. I brainstormed with the team to generate new ideas, conducted research to gather inspiration from diverse sources, and experimented with different concepts to see what would work best in our situation.
For instance, in one particular brainstorming session, I proposed [describe a specific idea or solution you came up with]. It was unconventional at first, but after refining and testing it, we found that it not only addressed the problem effectively but also exceeded our expectations in terms of results.
What made this approach creative was not just the novelty of the idea itself, but also the process of exploring different possibilities, being open to experimentation, and embracing a mindset of innovation and adaptation.
Ultimately, this experience taught me the value of creativity in problem-solving and the importance of fostering an environment that encourages experimentation and thinking outside the box to achieve success."
This response provides a concrete example of your creativity, demonstrating your ability to approach challenges with innovation and resourcefulness. It's essential to emphasize the process you followed, including brainstorming, research, and experimentation, to showcase your creative thinking skills.
The while(j <= 255) loop will get executed 255 times. The size short int(2 byte wide) does not affect the while() loop
&' is not a Logical operator.
Division, Multiplication, Addition, Subtraction
Ethical integrity is paramount in any professional setting. Here's a suggested approach to respond to this question:
z = x + y * z / 4 % 2 - 1
* / % + - =
max = a>b ? a>c?a:c:b>c?b:c
1, 2, 3
/ * + -
a = f1(23, 14) * f2(12/4) + f3();
Order may vary from compiler to compiler
2134
float, double, long double
use 3.14L
3.4E-4932 to 1.1E+493
00 00 AC 40
#include
rem = fmod(5.5, 1.3)
y = (int)(x + 0.5)
101.011
use 3.14f
Depends on big endian or little endian architecture
Depends on big endian or little endian architecture
During preprocessing
Not compile
char *p = (char*)malloc(100);
Representation of NULL pointer
stdio.h and stddef.h
->
*
*(*(*(*(a+i)+j)+k)+l)
A variable that stores address of other variable
near=2 far=4 huge=4
strstr()
strrchr()
printf("\\n");
0
All of them let you define new data types
'c' means argument count 'v' means argument vector
It may vary from one operating system to another
Base address of the array
int (*ptr)[10];
ptr is a pointer to an array of 10 integers
The program may crash if some important data gets overwritten.